<?php

/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model \common\models\LoginForm */

use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use frontend\models\ArtForm;
use \kucha\ueditor\UEditor;
use common\widgets\file_upload\FileUpload;
$this->title = '修改文章';
$this->params['breadcrumbs'][] = $this->title;
?>

    <style>
        body{
            background: #f9f9f9;
        }
        .registerform li{
            padding-bottom:25px;
            zoom: 1;
            overflow: hidden;
        }
        .registerform .label{
            display:block;
            width:125px;
            margin: 0;
            font-size: 14px;
            color: #444444;
            padding-top: 4px;
            padding-right: 5px;
            float: left;
            text-align: right;
        }
        .registerform .inputxt{
            border: 1px solid #d2d2d2;
            width:630px;
            float: left;
        }
        .action{
            margin-top: 10px;
        }
        .Validform_checktip{
            height: 33px;
            line-height: 33px;
            margin-left: 0;
        }
        .yzmsubinput{
            -webkit-border-radius: 5px;
            -moz-border-radius: 5px;
            border-radius:5px;
            background-color: #da444d;
        }
        .yzmsub{
            padding-left: 82px;
        }
        .adspae{
            font-size: 14px;
            color: #999999;
            margin-left: 10px;
            vertical-align: middle;
        }
        .rightdiv{ height:1500px!important;}
    </style>
            <div class="rwidt">
                <div class="rigtable">
                    <h3 class="grh3tit">修改文章</h3>
                  
                        <form class="registerform mt25" action="<?= yii\helpers\Url::to(['art/updatedata']);?>" id="subform" method='post'>
                        <input name="_csrf" type="hidden" id="_csrf" value="<?= Yii::$app->request->csrfToken ?>">
						<input name="id" type="hidden" value="<?= $art['id'] ?>">
                            <ul>
							       <li><label>标题：</label></li>
                                <li>
                                    <input type="text"  name="title" value="<?= $art['title'] ?>" class="inputxt" />
                                </li>
                                 <li><label>简介：</label></li>
								    <li>
									<textarea cols="50" rows="10" class="inputxt"  name="intro"><?= $art['intro'] ?></textarea>
                                </li>
								   <li><label>图片：</label></li>
                                <li>
									 <?php echo FileUpload::widget([ 'config'=>[], 'value'=>$art['img'], 'attribute'=>'img' ]); ?>
                                </li>
								    <li><label>文章信息链接：</label></li>
                                <li>
                                    <input type="text"  name="link" value="<?= $art['link'] ?>" class="inputxt" />
                                </li>
                                 <li><label>详细介绍：</label></li>
								    <li>						
								     <?= common\widgets\ueditor\Ueditor::widget(['options'=>['initialFrameHeight' => 200],'attribute'=>'content', 'value'=>$art['content']]) ?>					
                                </li>
								    <li><label>SEO关键词：</label></li>
								   <li>
                                    <input type="text"  name="seokeyword" value="<?= $art['seokeyword'] ?>" class="inputxt" />
                                </li>
                                 <li><label>SEO描述：</label></li>
								    <li>
									<textarea cols="50" rows="10" class="inputxt"  name="seocontent"><?= $art['seocontent'] ?></textarea>
                                </li>
                            </ul>
                            <div class="action">
                                <div class="clearFloat">
                                    <div class="yzmsub floatLeft">
                                        <input type="submit" value="确认" class="yzmsubinput"/>
                                    </div>
                                </div>
                            </div>
                        </form>
                
                </div>
            </div>
